﻿/***************************************************************************
 *		ElGee Google Chart API Helper
 *		Copyright(C) 2011 by Laurent Geffroy lgeffroy@gmail.com
 * 
 *		This program is free software; you can redistribute it and/or 
 *		modify it under the terms of the GNU General Public License as
 *		published by the Free Software Foundation; either version 2 of 
 *		the License, or (at your option) any later version.
 *		
 *		This program is distributed WITHOUT ANY WARRANTY; without even the
 *		implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
 *		See the GNU General Public License for more details.
 *	
 *      For particular licensing, please contact me at lgeffroy@gmail.com
 *****************************************************************************/


using System;
using System.Collections.Generic;

namespace ElGee.Google.Charts
{
    /// <summary>
    /// Chart DataTable Class
    /// </summary>
    public class ChartDataTable
    {
        /// <summary>
        /// Gets or sets the type.
        /// </summary>
        /// <value>The type.</value>
        public TypeOfColumn Type { get; set; }

        /// <summary>
        /// Gets or sets the type of the axis.
        /// </summary>
        /// <value>The type of the axis.</value>
        public TypeOfAxis AxisType { get; set; }

        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>The name.</value>
        public string Name { get; set; }

        /// <summary>
        /// Gets or sets the data.
        /// </summary>
        /// <value>The data.</value>
        public List<Object> Data { get; private set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="ChartDataTable"/> class.
        /// </summary>
        /// <param name="axisType">Type of the axis.</param>
        /// <param name="type">The type.</param>
        /// <param name="name">The name.</param>
        public ChartDataTable(TypeOfAxis axisType, TypeOfColumn type, string name)
        {
            AxisType = axisType;
            Type = type;
            Name = name;
            Data = new List<object>();
        }
    }
}
